package com.pug.zixun.pojo;

import java.math.BigDecimal;
import java.util.Date;
import lombok.*;
import com.baomidou.mybatisplus.annotation.*;

import org.pug.generator.anno.PugDoc;
/**
 * Coupon实体
 * 创建人:yykk<br/>
 * 时间：2022-09-12 15:00:59 <br/>
 * 源码下载：前台代码 git clone https://gitee.com/kekesam/kuangstudy-pug-ui.git
 * 飞哥B站地址：后台代码 git clone https://gitee.com/kekesam/kuangstudy-pug-parent.git
 * @version 1.0.0<br/>
 *
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("kss_activity_coupon")
public class Coupon  implements java.io.Serializable {

    @PugDoc(name="主健")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @PugDoc(name="标题")
    private String title;
    @PugDoc(name="开始时间")
    private Date starttime;
    @PugDoc(name="结束时间")
    private Date endtime;
    @PugDoc(name="创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @PugDoc(name="更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @PugDoc(name="类型 1 课程 2 专栏 3全局")
    private Integer type;
    @PugDoc(name="课程id或者专栏id")
    private Long opid;
    @PugDoc(name="面值")
    private Float price;
    @PugDoc(name="发行量")
    private Integer cnum;
    @PugDoc(name="描述")
    private String description;
    @PugDoc(name="1 满减 2 折扣 3 兑换")
    private Integer ctype;
    @PugDoc(name="1发行中 0未发布")
    private Integer status;
    @PugDoc(name="排序")
    private Integer sorted;
    @PugDoc(name="是否过期 1 未开始 2 进行中 3 已过期")
    private Integer cstatus;
    @PugDoc(name="优惠券的有效时间")
    private Date periodStarttime;
    @PugDoc(name="优惠券的失效时间")
    private Date periodEndtime;
    @PugDoc(name="使用门槛")
    private BigDecimal fullprice;
}
